from experience import Experience

# Interaction Base Class
class Interaction(Experience):
    dictInteraction = {}

    def __init__(self, experiment, result, valence):
        super().__init__(experiment, result)
        self.valence = valence

    def __repr__(self):
        return '({},{},{})'.format(self.experiment, self.result, self.valence)

    # get Interaction Name
    def getInteractionName(self):
        interationName = self.experiment + self.result
        return interationName

    #Clear Dictionary for Re-Test
    @classmethod
    def clearInteractionDictionary(cls):
        cls.dictInteraction = {}